package com.tul.vapp.servicecenter.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * create by wujunlei
 *
 * @author wujunlei
 * @since 2018/1/16
 */
public class RegexUtil {

    /**
     * 验证参数是否为ems【1-8】
     *
     * @param name name
     * @return boolean
     */
    public static boolean isEms(String name) {
        Pattern pattern = Pattern.compile("ems[1-8]");
        Matcher matcher = pattern.matcher(name);
        if (matcher.matches()) {
            return true;
        }
        return false;
    }

}
